﻿using System;
using System.IO;
using System.Reflection;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace UTWebControls
{
    [TestClass]
    public class UnitTest1
    {
        [TestMethod]
        public void TestMethod1()
        {
            var assembly = Assembly.GetExecutingAssembly();
            var resourceName = "GrayParrot.Web.Controls.Datatables.GridTemplate.txt";

            string retValue = string.Empty;

            using (Stream stream = assembly.GetManifestResourceStream(resourceName))
            using (StreamReader reader = new StreamReader(stream))
            {
                retValue = reader.ReadToEnd();
            }

            Console.WriteLine(retValue);
        }
    }
}
